<?php

namespace Biz\validate;


class AppLogin extends \Doraemon\pockets\validate\Base
{


    public static function rules()
    {
        return [
            ['phone', 'Callback', '\Biz\validate\AppLogin::checkphone', '手机号不存在', ['login']],
//            ['phone', 'required', null, '请输入手机号', ['login']],
//            ['phone', 'length', '1,11', '请输入正确的手机号', ['login']],
//
//            ['password', 'required', null, '请输入密码', ['login']],

        ];

    }

    public static function checkphone($value)
    {
        if ($value != '13521553395') {
            return false;
        }
        return true;
    }

}